<?php
// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

// Require the component API classes
require_once 'communalmeals_api.php';

// Require the component service classes
require_once 'communalmeals_service.php';

// Require the component front end classes
require_once 'communalmeals_frontend.php';

// Require the base controller
require_once 'controller.php';

// Create the controller
$controller	= new CommunalMealsController();

// Perform the Request task
$controller->execute( JRequest::getVar( 'task' ) );

// Redirect if set by the controller
$controller->redirect();